package at.socialconference.inter.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Conference implements Serializable, Updatetable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 858810476557141901L;

	private Integer id;

	private String name;

	private Date date_from;
	private Date date_to;
	private String description;
	private Place place;
	private List<Talk> talks = new ArrayList<Talk>();

	// needed by GWT
	public Conference() {}

	public Conference(Integer id, String name, Date date_from, Date date_to, String description, Place place, List<Talk> talks) {
		super();
		this.id = id;
		this.name = name;
		this.date_from = date_from;
		this.date_to = date_to;
		this.description = description;
		this.place = place;
		this.setTalks(talks);
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDate_from() {
		return date_from;
	}

	public void setDate_from(Date date_from) {
		this.date_from = date_from;
	}

	public Date getDate_to() {
		return date_to;
	}

	public void setDate_to(Date date_to) {
		this.date_to = date_to;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setPlace(Place place) {
		this.place = place;
	}

	public Place getPlace() {
		return place;
	}

	public void setTalks(List<Talk> talks) {
		this.talks = talks;
	}

	public List<Talk> getTalks() {
		return talks;
	}

}
